<?php
/**
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Rubik Ultimate Framework
 * @version 	: 1.1
 * COPYRIGHT    : 2008
 * ------------------------------------------------------
 * 
 * Created on	:  Jun 24, 2008
 * 
 */

// no direct access
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );

if (SysRequest::getMethod() == 'GET') {
	if (strlen($_GET['_rurq']) <= 3) {
		// mean this is the home page.
		// check if they are in welcome pages or not!
		if (!$_REQUEST['welcome']) {
			setcookie('welcome', true, time() + 3600*24*7);
			RubikHelper::redirectToUrl(SystemSite::urlRoute('?app=welcome&act=welcome.php'));
		}
	}
}